package weeks

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ WeeksModel = (*customWeeksModel)(nil)

type (
	// WeeksModel is an interface to be customized, add more methods here,
	// and implement the added methods in customWeeksModel.
	WeeksModel interface {
		weeksModel
	}

	customWeeksModel struct {
		*defaultWeeksModel
	}
)

// NewWeeksModel returns a model for the database table.
func NewWeeksModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) WeeksModel {
	return &customWeeksModel{
		defaultWeeksModel: newWeeksModel(conn, c, opts...),
	}
}
